import http from "../utils/http"

/**
 * 获取企业认购列表数据
 * @param {object} params
 */
export function enterprisebuylist(params) {
    return http({
        url: "/corporatesubscription/api/goods/page",
        data: params,
        forceLogin: true
    })
}


/**
 * 获取企业认购详情数据
 * @param {object} params
 */
export function enterprisebuydetail(params) {
    return http({
        url: "/corporatesubscription/api/goods/detail",
        data: params,
        forceLogin: true
    })
}




/**
 * 获取企业认购订单初始化数据
 * @param {object} params
 */
export function payment(params) {
    return http({
        url: "/corporatesubscription/api/ordercreate/payment",
        data: params,
        forceLogin: true
    })
}

/**
 * 获取企业认购订单初始化数据
 * @param {object} params
 */
export function calculate(params) {
    return http({
        url: "/corporatesubscription/api/ordercreate/calculate",
        data: params,
        forceLogin: true
    })
}

/**
 * 企业认购订单创建
 * @param {object} params
 */
export function orderCreate(params) {
    return http({
        url: "/corporatesubscription/api/ordercreate/create",
        data: params,
        forceLogin: true
    })
}


// /corporatesubscription/api / goods / info


/**
 * 获取info
 * @param {object} params
 */
export function goodsSkuInfo(params) {
    return http({
        url: "/corporatesubscription/api/goods/info",
        data: params,
        forceLogin: true
    })
}

/**
 * 验证支付密码
 * @param {object} params
 */
export function checkpaypassword(params) {
    return http({
        url: "/api/member/checkpaypassword",
        data: params,
        forceLogin: true
    })
}